import moment from 'moment'

const format = (time) => {
  moment.locale('zh-cn')
  return moment(time).fromNow()
}

export default format
